<?php

class GroupTableSeeder extends Seeder {
    
    public function run()
    {
        DB::table('groups')->truncate();
        Sentry::createGroup(array(
            'name' => 'admin',
            'permissions' => array(                
                'user.view' => 1,
                'user.create' => 1,
                'user.edit' => 1,
                'user.delete' => 1
            )
        ));
        
        Sentry::createGroup(array(
            'name' => 'manager',
            'permissions' => array(
                'user.view' => 1,
                'user.create' => 1,
                'user.edit' => 1,              
                'user.delete' => 0
            )
        ));

        Sentry::createGroup(array(
            'name' => 'user',
            'permissions' => array(
                'user.view' => 0,
                'user.create' => 0,
                'user.edit' => 0,              
                'user.delete' => 0
            )
        ));
    }
    
}
